﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PearTunes.Model
{
    /// <summary>
    /// The user model
    /// </summary>
    [DataContract]
    public class User
    {
        /// <summary>
        /// Unique ID for the user
        /// </summary>
        [DataMember]
        public int UserId { get; set; }
        /// <summary>
        /// The name of the user
        /// </summary>
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// User's money in HUF
        /// </summary>
        [DataMember]
        public int Money { get; set; }
        /// <summary>
        /// User's e-mail address
        /// </summary>
        [DataMember]
        public string Email { get; set; }
        /// <summary>
        /// User's password
        /// </summary>
        [DataMember]
        public string Password { get; set; }
        /// <summary>
        /// The collection of the tracks that the user has bought
        /// </summary>
        [DataMember]
        public List<Track> BoughtTracks { get; set; }

    }
}
